package org.xdemo.example.SpringActivemq.test;


import org.apache.log4j.Logger;


/**
 * 
 * Eop消费者
 * @author kingapex
 *
 */
public class EopConsumer {
	
	protected final Logger logger = Logger.getLogger(getClass());
	

	
	
	public void execute(IEopJmsMessage message){
		
		try{
			
			//获取原上下文，设置为当前的上下文
			
			
			Object data = message.getData();
			String processorid = message.getProcessorBeanId();
			
			System.out.println(data);
			
			System.out.println(processorid);
			
			
		}catch(Exception e){
			
			this.logger.error("Jms消息执行出错",e);
			
		}finally{
			
		}
		
	}
	
	
	
}
  
